	function isCardID(sfzmhm){ 
		var iSum=0 ;
		var info="" ; 
		if(!/^\d{17}(\d|x)$/i.test(sfzmhm))
		return " 你输入的证件号码长度或格式错误";
		sfzmhm=sfzmhm.replace(/x$/i,"a"); 
		//if(aCity[parseInt(sfzmhm.substr(0,2))]==null) return "你的证件号码地区非法"; 
		sBirthday=sfzmhm.substr(6,4)+"-"+Number(sfzmhm.substr(10,2))+"-"+Number(sfzmhm.substr(12,2)); 
		var d=new Date(sBirthday.replace(/-/g,"/")) ;
		if(sBirthday!=(d.getFullYear()+"-"+ (d.getMonth()+1) + "-" + d.getDate()))return "证件号码上的出生日期非法"; 
		for(var i = 17;i>=0;i --) iSum += (Math.pow(2,i) % 11) * parseInt(sfzmhm.charAt(17 - i),11) ;
		if(iSum%11!=1) return "你输入的证件号码非法"; 
		return true;//aCity[parseInt(sId.substr(0,2))]+","+sBirthday+","+(sId.substr(16,1)%2?"男":"女") 
	 } 

/*
 * var result =  isCardID(idcard.value);
		if(result!= true){
		    alert(result);
		    idcard.focus();
		    return false;
		}
 * 
 */